package cn.lu.train.ui.dialog;

import android.view.Gravity;
import android.view.View;
import android.view.WindowManager;

import butterknife.OnClick;
import cn.lu.train.R;
import cn.lu.train.base.BaseDialogFragment;

public class ServiceDialog extends BaseDialogFragment {

    @Override
    public int getLayoutRes() {
        return R.layout.dialog_service;
    }

    @Override
    public void onCreated(View layout) {

    }

    @Override
    protected void setAttributes(WindowManager.LayoutParams params) {
        params.width = WindowManager.LayoutParams.MATCH_PARENT;
        params.height = WindowManager.LayoutParams.WRAP_CONTENT;
        params.gravity = Gravity.BOTTOM;
        super.setAttributes(params);
    }

    @OnClick({R.id.tv_cancel})
    public void onViewClick(View view) {
        switch (view.getId()) {
            case R.id.tv_cancel:
                dismiss();
                break;
        }
    }


}
